<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>中国社区</title>
  <link rel="stylesheet" href="../../css/news/information.css">
  <link rel="stylesheet" href="../../css/public/base.css">
  <link rel="stylesheet" href="../../layui/css/layui.css">
  <script src="../../js/public/jquery-3.3.1.js"></script>
  <script src="../../js/management/management.js"></script>
</head>
<body>
<div class="postConsult">
  <form action="" class="noticeForm layui-form">
    <div class="layui-form-item">
      <label class="layui-form-label">标题</label>
      <div class="layui-input-block">
        <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off"
               class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">发布人ID</label>
      <div class="layui-input-block">
        <input type="text" name="title" readonly lay-verify="required" placeholder='张三' autocomplete="off"
               class="layui-input read">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">时间</label>
      <div class="layui-input-block">
        <input type="text" name="title" required lay-verify="required" placeholder="2018.01.01 18:00:00"
               autocomplete="off" class="layui-input" id="time_news">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">详情</label>
      <div class="layui-input-block">
        <textarea placeholder="请输入你的阶段目标" required lay-verify="required" class="layui-textarea" style="resize:none;"></textarea>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit="" lay-filter="demo1" id="postConsult">发布资讯</button>
      </div>
    </div>
  </form>
</div>
<script src="../../layui/layui.js"></script>
<script>
  layui.use(['form', 'laydate'], function(){
    var form = layui.form,laydate = layui.laydate;
    laydate.render({
      elem: '#time_news', //指定元素
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss', //自定义格式化
      trigger: 'click', //采用click弹出
      theme:'#2d528f'
    });
  });
  $("#postConsult").click(function () {
    localStorage.setItem('adress','../news/news.html');
  })
</script>
</body>
</html>